package com.imooc.restaurant.dao;

import com.imooc.restaurant.po.ProductPo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * ProjectName restaurant
 *
 * @author xieyucan
 * <br>CreateDate 2022/9/20 16:38
 */
@Mapper
@Repository
public interface ProductDao {

    @Select("select id,name,price,restaurant_id restaurantId,status,date from product where id=#{id}")
    ProductPo selectProduct(Integer id);
}
